package com.oracle.lingshangejia.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.oracle.lingshangejia.R;
import com.oracle.lingshangejia.bean.SpecialListBean;

import java.util.List;

/**
 * @松 on 2019/11/21 16:40
 */
public class SpecialLsitAdapter extends BaseQuickAdapter<SpecialListBean.DataBean.RowsBean, BaseViewHolder> {
    public SpecialLsitAdapter( @Nullable List<SpecialListBean.DataBean.RowsBean> data) {
        super(R.layout.item_spcial_list, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, SpecialListBean.DataBean.RowsBean item) {
           helper.setText(R.id.tv_name,item.getName() );
           helper.setText(R.id.tv_date,"日期: "+item.getCreateDate());
    }
}
